home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-01-01 | 4.4 KB | 183 lines | [TEXT/MPS ] |
- //# Copyright: © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
-
- #ifndef _WINSTAT_
- #define _WINSTAT_
-
- #ifndef _ODOBJECT_
- #include "ODObject.idl"
- #endif
-
- //=====================================================================================
- // Classes defined in this interface
- //=====================================================================================
-
- interface ODWindowState;
-
- //=====================================================================================
- // Classes used by this interface
- //=====================================================================================
-
- interface ODCanvas;
- interface ODDraft;
- interface ODFacet;
- interface ODFrame;
- interface ODMenuBar;
- interface ODPart;
- interface ODShape;
- interface ODTransform;
- interface ODWindow;
- interface ODWindowIterator;
- interface ODWindowModule;
-
-
- //=====================================================================================
- // ODWindowState
- //=====================================================================================
-
-
- interface ODWindowState : ODObject
- {
-
- ODWindow RegisterWindow(in ODPlatformWindow newWindow,
- in ODType frameType,
- in ODBoolean isRootWindow,
- in ODBoolean isResizable,
- in ODBoolean isFloating,
- in ODBoolean shouldSave,
- in ODBoolean shouldDispose,
- in ODPart rootPart,
- in ODTypeToken viewType,
- in ODTypeToken presentation,
- in ODFrame sourceFrame);
-
- ODWindow RegisterWindowForFrame(in ODPlatformWindow newWindow,
- in ODFrame frame,
- in ODBoolean isRootWindow,
- in ODBoolean isResizable,
- in ODBoolean isFloating,
- in ODBoolean shouldSave,
- in ODBoolean shouldDispose,
- in ODFrame sourceFrame);
-
- ODWindow AcquireWindow(in ODID id);
-
- void Internalize(in ODDraft draft);
-
- void Externalize(in ODDraft draft);
-
- void SetDefaultWindowTitles(in ODDraft draft);
-
- void OpenWindows(in ODDraft draft);
-
- void CloseWindows(in ODDraft draft);
-
- ODUShort GetWindowCount();
-
- ODUShort GetRootWindowCount(in ODDraft draft);
-
- ODUShort GetTotalRootWindowCount();
-
- ODBoolean IsODWindow(in ODPlatformWindow aWindow);
-
- ODWindow AcquireODWindow(in ODPlatformWindow aWindow);
-
- ODWindowIterator CreateWindowIterator();
-
- ODWindow AcquireActiveWindow();
-
- void SetBaseMenuBar(in ODMenuBar theMenuBar);
-
- ODMenuBar CopyBaseMenuBar();
-
- void AdjustPartMenus();
-
- ODMenuBar CreateMenuBar(in ODPlatformMenuBar menuBar);
-
- ODCanvas CreateCanvas(in ODGraphicsSystem graphicsSystem,
- in ODPlatformCanvas platformCanvas,
- in ODBoolean isDynamic,
- in ODBoolean isOffscreen);
-
- ODFacet CreateFacet(in ODFrame frame,
- in ODShape clipShape,
- in ODTransform externalTransform,
- in ODCanvas canvas,
- in ODCanvas biasCanvas);
-
- #ifdef _PLATFORM_MACINTOSH_
-
- ODMenuBar AcquireCurrentMenuBar();
-
- ODMenuBar AcquireBaseMenuBar();
-
- void DeactivateFrontWindows();
-
- void ActivateFrontWindows();
-
- ODWindow AcquireFrontWindow();
-
- ODWindow AcquireFrontFloatingWindow();
-
- ODWindow AcquireFrontRootWindow();
-
- void SetWindowModule( in ODWindowModule windowModule );
-
- #endif //# _PLATFORM_MACINTOSH_
-
-
- #ifdef __SOMIDL__
- #ifdef _PLATFORM_MACINTOSH_
- implementation
- {
- majorversion = 1; minorversion = 1;
-
- functionprefix = ODWindowState;
-
- override:
- somUninit,
- Purge;
-
- releaseorder:
- RegisterWindow,
- RegisterWindowForFrame,
- AcquireWindow,
- Internalize,
- Externalize,
- SetDefaultWindowTitles,
- OpenWindows,
- CloseWindows,
- GetWindowCount,
- GetRootWindowCount,
- GetTotalRootWindowCount,
- IsODWindow,
- AcquireODWindow,
- CreateWindowIterator,
- AcquireActiveWindow,
- SetBaseMenuBar,
- CopyBaseMenuBar,
- AdjustPartMenus,
- CreateMenuBar,
- CreateCanvas,
- CreateFacet,
-
- AcquireCurrentMenuBar,
- AcquireBaseMenuBar,
- DeactivateFrontWindows,
- ActivateFrontWindows,
- AcquireFrontWindow,
- AcquireFrontFloatingWindow,
- AcquireFrontRootWindow,
- reserved1, reserved2, reserved3, reserved4, reserved5, reserved6,
- reserved7, reserved8, reserved9, reserved10, reserved11, reserved12,
- reserved13, reserved14, reserved15, reserved16, reserved17, reserved18,
- reserved19,reserved20,reserved21,reserved22,reserved23,reserved24,
- SetWindowModule;
-
-
- };
- #endif //# _PLATFORM_MACINTOSH_
- #endif //# __SOMIDL__
- };
-
- #endif // _WINSTAT_
-